﻿<?php

/**
 * @author Nguyen Xuan Hong
 * @copyright 2010
 */
$pClsAlbum->loadDB('keyword',"home");
$listpicture = $pClsPicture->listobj($pClsAlbum->attList['id']['value']);
if($listpicture)
{
	$imagearray = "[";
	$i = 0;
	foreach($listpicture as $picture)
	{
		$url = $picture->attList['url']['value'];
		if(is_file($picture->attList['url']['value']))
		{
			$imagearray = $imagearray . (($i==0)?"":",")."['"."/resize.php?t=ratio&s=780|400&u=".$picture->attList['url']['value']."','','_new','<div style=padding-top:8px;><h7>".$picture->attList['title']['value']."</h7></div>']";
			$i++;
		}
	}
	$imagearray .= "]";
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr >
		<td style="width: 780px;" align="center" >
			<script type="text/javascript">
            var flashyshow=new flashyslideshow({wrapperid: 'myslideshow',wrapperclass: 'flashclass',imagearray: <? echo($imagearray); ?>,pause: 5000,transduration: 5000});
            </script>
            <div id="fadeshow1"></div>
		</td>
		<td >
		</td>
	</tr>
</table>
<div style="height: 10px;"></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="bg_white">
	<tr >
		<td class="h10 w10" style="background-image:url(images/image_50.png)">
		</td>
		<td class="h10" width ="auto" style="background-image:url(images/image_51.png)">
		</td>
		<td class="h10 w10" style="background-image:url(images/image_52.png)">
		</td>
	</tr>
	<tr >
		<td class="w10" height="auto" style="background-image:url(images/image_53.png)">
		</td>
		<td height="auto" width ="auto">
			<?php echo($pageconfig->value("intro")); ?>
		</td>
		<td class="w10" height="auto" style="background-image:url(images/image_54.png)">
		</td>
	</tr>
	<tr>
		<td class="h10 w10" style="background-image:url(images/image_55.png)">
		</td>
		<td class="h10" width="auto" style="background-image:url(images/image_56.png)" align="center">
		 </td>
		<td class="h10 w10" style="background-image:url(images/image_57.png)">
		</td>
	</tr>
</table>